define(function(require, exports, module){
	var setTemp = require("text!../template/set.html");
	
	module.exports = Nuui.View.extend({
		
		template:setTemp,
		
		onRender:function(){
			var view = this;

		},
		
		onShow:function(){
            var view = this;
            //退出提醒
            view.$(".exit").on("tap",function () {
                Nuui.utils.confirm("确定退出当前账号?", {
					title:'',
            		confirmButContent:'确认',
            		cancelButContent:'放弃'
                	}, function(state){
                	if(state){
                        window.localStorage.clear();

                        App.storage.set("isUserLoggedIn",false);

                        App.navigate("login/login/index",true);

					}else{
                    	App.navigate("example/index/set", true);
					}}
				);
            })
		}
		
	});	
});